<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 15-1-19
 * Time: 上午10:35
 */
namespace Admin\Model;
use Think\Model\RelationModel;

class MsgModel extends RelationModel {
    //关联表
    protected $tableName = 'msg';

    protected $_link = array(
        'member' => array(
            'mapping_type'   => self::HAS_ONE,
            'foreign_key'    => 'id',
            'class_name'     => 'member',
            'mapping_key'    => 'memberID'
        ),
    );
}